package com.example.aop.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/hi")
    public String sayHi(String name){
        return "Hi,"+name;
    }
    @RequestMapping("/hello")
    public String sayHello(){
        return "Hello,world";
    }
}
